package name.brucephillips.struts2springhibernateexample.dao;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import Thinh.thinh.dao.SaleDaoHibernate;
import Thinh.thinh.model.Sale;

@ContextConfiguration(locations={"classpath:applicationContextTest.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class testsaledao {
	
	
	
	SaleDaoHibernate a = new SaleDaoHibernate();
	
	@Test
	public void tesdAll() {
		
		Sale c = new Sale();
		//c.setName("hh");
		
		//a.create(c);
		
	}
	
	@Test
	public void testFindAll() {
		a.findAll();
		
	}
	
	
	
}
